package br.com.revolution.util;

import java.io.File;

public class FileUtils {
	
	/**
	 * Rename file specified to new file name with extension specified too.   
	 * 
	 * @param file File to renamed.
	 * @param newFileName New name of the file.
	 * @return True if 
	 */
	public static boolean rename(File file, String newFileName) {
		return file.renameTo(new File(file.getParent() + File.separator + newFileName));
	}

}
